
*******************************************************************************
**** Generates final tables for the papaer
*******************************************************************************

**** Define the main parent directory here
foreach path in "ADD YOUR PATH HERE" {
	capture cd "`path'"
	 if _rc == 0  global superdir "`path'"
}


**** Housekeeping
do "$superdir\code\stata\build\Settings.do"

cd "$outputdir_tab"
local txtfiles: dir . files "*.txt"
foreach txt in `txtfiles' {
    cap erase `"`txt'"'
}



set more off
**** Main Figures
do "$codedir\Figure_1.do"
do "$codedir\Figure_5.do"
do "$codedir\Figure_6.do"
do "$codedir\Figure_7.do"


**** Main Tables
do "$codedir\Table_1.do"
do "$codedir\Table_2.do"
do "$codedir\Table_3.do"



cd "$outputdir_tab"
local txtfiles: dir . files "*.txt"
foreach txt in `txtfiles' {
    cap erase `"`txt'"'
}


